package com.quanquan.user.entity;

import lombok.Data;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述: 营销规则
 *
 * @ClassName: MarketingRules
 * @Author: xiaoqianh丶
 * @Date: 2019-05-24 15:05
 * @Version: V1.0
 */
@Data
@Table(name = "oo_marketing_rule")
@Entity
public class MarketingRules implements Serializable {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 新会员是否送积分
     */
    @Type(type = "yes_no")
    @Column(name = "status_new_member_integral")
    private Boolean newMemberIntegral;

    /**
     * 奖励的积分数
     */
    @Column(name = "reward_integral",length = 32)
    private String rewardIntegral;

    /**
     * 新会员是否送优惠券
     */
    @Type(type = "yes_no")
    @Column(name = "status_new_member_coupom")
    private Boolean newMemberCoupom;

    /**
     * 优惠券的数量
     */
    @Column(name = "coupom_count_num",length = 32)
    private String coupomCountNum;


    /**
     * 优惠券id的字符拼接
     */
    @Column(name = "coupom_ids",length = 512)
    private String coupomIds;
    /**
     * 新会员是否送停车券
     */
    @Type(type = "yes_no")
    @Column(name = "status_new_member_parking_coupom")
    private Boolean newMemberParkingCoupom;


    /**
     * 停车券id字符拼接
     */
    @Column(name = "coupom_parking_ids",length = 512)
    private String coupomParkingIds;

    /**
     * 停车券的数量
     */
    @Column(name = "coupom_parking_count_num",length = 32)
    private String coupomParkingCountNum;

    /**
     * 满额规则是否开启
     */
    @Type(type = "yes_no")
    @Column(name = "status_consumption_quota")
    private Boolean consumptionQuota;



}
